package com.hxkj.service;

import com.github.pagehelper.PageInfo;
import com.hxkj.domain.po.Department;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.to.PageTo;

/**
 * @author chenwei
 * @create 2018-05-22 9:43
 * @desc 部门service
 **/
public interface DepartmentService {


    /**
     * 添加部门
     * @param department
     * @throws Exception
     */
    void save(Department department) throws Exception;


    /**
     * 删除部门
     * @param department
     * @throws Exception
     */
    void remove(Department department) throws Exception;


    /**
     * 修改部门
     * @param department
     * @throws Exception
     */
    void modify(Department department) throws Exception;

    /**
     * 获取部门
     * @param id
     * @return
     * @throws Exception
     */
    ResultDataStruct<Department>  get(Long id) throws Exception;


    /**
     * 分页获取部门
     * @param
     * @return
     * @throws Exception
     */
    PageInfo<Department> getDepartmentList(Department department, PageTo pageParam)throws Exception;
}
